interfaces to receive emails from any network interfaces. Inet_interfaces = all
4. Set the host name or domain name for receiving emails
Mydestination = $ mydomain, $ myhostname
5. set which network emails can be forwarded (Relay)
Mynetworks = 192.168.1.0/24,127.0 .0.1/8
Note: In addition to mynetworks, mynetworks-style is also a parameter used to control networ
. Inet_interfaces = all
4. Set the host name or domain name for receiving emails
Mydestination = $ mydomain, $ myhostname
5. set which network emails can be forwarded (Relay)
Mynetworks = 192.168.1.0/24,127.0 .0.1/8
Note: In addition to mynetworks, mynetworks-style is also a parameter used to control network mail forwarding. It is mainly used to set the network t
. To give a simple example, the user can set the parameter value as follows:
Accept_domain = Test.netMydestination = $accept _domain
This means that regardless of whether the recipient address of the letter is X@test.net (where X represents a user's mail account name in the test.net domain), Postfix will receive the message. In addition to the mail, Postfix will not accept.
Securely set up a network that can forward mail (IP settings)
The Mynetworks
listening port.
Now set Outlook or Foxmail
Modify the SMTP port number in the Send settings to 587, and don't forget to let go of 587 in the firewall.
Use this domain user to try to send an email to see.
AMAVIS[30236]: (30236-16) passed clean, checkbypass [222.45.26.224] [222.45.26.224]->, Message-id:
, MAIL_ID:ALW5YMALJBGF, Hits:-, size:1605, queued_as:1ffa8474002, MS
If the "Hits:-" section appears, the settings are successful
Method Two:
Modify @
to software errors to the Postfix administrator.
The default value is:
Policy_classes = resource, software
4. myhostname
The myhostname parameter specifies the Host Name of the host running the Postfix mail system. By default, this value is set to the local machine name. You can also specify this value. Note that you must specify the complete host name. For example:
Myhostname = mail.domain.com
5. mydomain
The mydomain parameter specifies your domain name. By default, Postfix deletes the first
for this stage. In this phase, the available filtering rules include:
Reject_unknown_client
Deny that the customer's address does not have A corresponding dns a record or PTR record connection. Generally, some machines, especially personal dial-up users, do not have A or PTR record. Therefore, pay attention to the usage of roaming users (roaming users do not include $ mynetworks, for example, users who access the Internet by dialing at another ISP.
, you can use the host name to specify the network interfaces to be opened. However, generally all network interfaces are open to receive emails from any network interface, which sets the inet interfaces parameter value to "all ".Mydestination = $ mydomain, $ myhostnameThe Postfix will receive the email only when the recipient address of the sent Email matches the value of this parameter. For example, here you set this parameter value to $ mydomain, $ myhosname, indicating whether the recipient
check port statusTcp 0 0 0.0.0.0: 587 0.0.0.0: * LISTEN 18525/master587 is the listener port of submission.Now set outlook or foxmailModify the smtp port number in the sending settings to 587. Do not forget to release 587 in the firewall.Use this domain user to try out an email.Amavis [30236]: (30236-16) Passed CLEAN, CHECKBYPASS [222.45.26.133] [222.45.26.133]->, Message-ID:
, Mail_id: ALw5YMALJbGF, Hits:-, size: 1605, queued_as: 1FFA8474002, 182 MSIf the "Hits:-" section appears, the setting
AMAVISDNETSTAT-TNLP look at the port statusTCP 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 18525/master587 is both a submission listening port.Now set Outlook or FoxmailModify the SMTP port number in the Send settings to 587, and don't forget to let go of 587 in the firewall.Use this domain user to try to send an email to see.AMAVIS[30236]: (30236-16) passed clean, checkbypass [222.45.26.224] [222.45.26.224]->, Message-id:
, MAIL_ID:ALW5YMALJBGF, Hits:-, size:1605, queued_as:1ffa8474002, MSIf the "Hits:-
= $mydomainInet_interfaces = Allmydestination = $myhostname, localhost $mydomain, localhost, $mydomainMynetworks = 192.168.100.10/28, 127.0.0.0/8Relay_domains =Home_mailbox = maildir/
The above several settings are not in the same location, need to find separately, and make changes, where the corresponding domain name, please change their address, mynetworks I did not make changes, automatically have. I was also misconfigured at first to ca
Postfix a few of the frequency control letters:
Smtpd_client_connection_rate_limit=5
The frequency control of the IP address connection.
Smtpd_client_message_rate_limit=5
The frequency control that the client sends the message. (In some cases the effect of smtpd_client_message_rate_limit and Smtpd_client_connection_rate_limit is the same. Smtpd_client_connection_rate_ Limit is when you connect to server port 25 to start the calculation, smtpd_client_message_rate_limit when you send the messa
.
Smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
See/usr/share/doc/postfix/TLS_README.gz in the postfix-doc package
Information on enabling SSL in the smtp client.
Set your host name, and this setting value is referenced by many other parameters.
Myhostname = localhost
The parameter determines which domain emails can be delivered by the Postfix.
Relay_domains = $ mydestination, 126.com
The mynetworks
postfix administrator. It also contains the content of the entire SMTP session.Resource: sends the error messages that cannot be delivered due to resource errors to the postfix administrator, for example, queue file write errors.Software: sends undeliverable error messages due to software errors to the postfix administrator.The default value is:Policy_classes = resource, software4. myhostnameThe myhostname parameter specifies the Host Name of the host running the postfix mail system. By default
/ETC/POSTFIX/MAIN.CF configuration fileSet the host name, if there is DNS resolution, here can not set.#myhostname = Host.domain.tld#myhostname = Virtual.domain.tld98 #myorigin = $myhostname#myorigin = $mydomainThe host name and domain name can be spoofed when sending mail113 #inet_interfaces = All#inet_interfaces = $myhostname#inet_interfaces = $myhostname, localhostinet_interfaces = localhostPort Monitoring What host164 Mydestination = $myhostname, localhost. $mydomain, localhost165 #mydestina
/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s2.51cto.com/wyfs02/m01/78/8d/wkiom1z_s3vbvcu5aaagvmd9nvi625.png "title=" 2.png "alt=" wKiom1Z_ S3vbvcu5aaagvmd9nvi625.png "/>2. Perform some basic configuration, test the boot postfix and send the letters# VIM/ETC/POSTFIX/MAIN.CFModify the following items for the configuration you needMyhostname = mail.fei.comMyorigin = fei.comMyDomain = fei.commydestination = $myhostname, localhos
"localhost" to "all" ↓ inet_interface S = all Hosts changed to this status, accepting requests from all networks mydestination = $ myhostname, localhost. $ mydomain, localhost locate this line, and add "$ mydomain" into mydestination = $ myhostname, localhost. $ mydomain, localhost, $ mydomain expired is changed to this status. Specify the domain name sent to the local email # relay_domains = $ mydestination found to find this line, remove repeated relay_domains = $ mydestination domains from t
Postfix:Alternatives--display MTA5, configure Postfix,vi edit MAIN.CFVi/etc/postfix/main.cfAfter opening, find the following items, and then remove the previous # and do the configuration:Myhostname = mail.gongzi.orgMyDomain = gongzi.orgMyorigin = $mydomainInet_interfaces = Allmydestination = $myhostname, localhost. $mydomain, localhost, $mydomainMynetworks = 192.168.100.10/24, 127.0.0.0/8Relay_domains =Home_mailbox = maildir/The above several settings are not in the same location, need to look
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.